package entity;

import java.util.Date;

import org.springframework.stereotype.Component;

/**
 * 用户上传的视频实体类
 * @author Administrator
 *
 */
@Component
public class Video {

	private int id;  //编号
	private Users user;  //视频所属用户的编号
	private String name;   //视频名称
	private String intro;   //简介
	private Date uploadTime;   //上传时间
	private Category category;   //所属类别
	private int isLive;    //是否为直播，0为非直播，1为直播
	private int isCharge;  //是否为收费视频，0为非收费视频，1为收费视频
	private double price;  //收费价格的视频，默认为0
	private String url;    //转码器处理过后视频的存放url
	private String oriUrl;   //处理前用户上传的初始视频的存放url
	private String thumbnailUrl;   //缩略图存放的url
	private VideoState videoState;   //视频的上传状态，有四中状态
	private VideoList videoList;   //视频所在的播单，如果不选择，默认为空
	private int videoClick;   //视频的点击量，默认为0
	private Date duration;  //视频的持续时间
	private String remark;   //备注
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Users getUser() {
		return user;
	}
	public void setUser(Users user) {
		this.user = user;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	public Date getUploadTime() {
		return uploadTime;
	}
	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}
	public Category getCategory() {
		return category;
	}
	public void setCategory(Category category) {
		this.category = category;
	}
	public int getIsLive() {
		return isLive;
	}
	public void setIsLive(int isLive) {
		this.isLive = isLive;
	}
	public int getIsCharge() {
		return isCharge;
	}
	public void setIsCharge(int isCharge) {
		this.isCharge = isCharge;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getOriUrl() {
		return oriUrl;
	}
	public void setOriUrl(String oriUrl) {
		this.oriUrl = oriUrl;
	}
	public String getThumbnailUrl() {
		return thumbnailUrl;
	}
	public void setThumbnailUrl(String thumbnailUrl) {
		this.thumbnailUrl = thumbnailUrl;
	}
	public VideoState getVideoState() {
		return videoState;
	}
	public void setVideoState(VideoState videoState) {
		this.videoState = videoState;
	}
	public VideoList getVideoList() {
		return videoList;
	}
	public void setVideoList(VideoList videoList) {
		this.videoList = videoList;
	}
	public int getVideoClick() {
		return videoClick;
	}
	public void setVideoClick(int videoClick) {
		this.videoClick = videoClick;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getDuration() {
		return duration;
	}
	public void setDuration(Date duration) {
		this.duration = duration;
	}
	@Override
	public String toString() {
		return "Video [name=" + name + ", intro=" + intro + ", category=" + category.getId() + ", oriUrl=" + oriUrl + "]";
	}
	
	
}
